import { BasePageReq, BasePageResp, BaseParam, UserInfo } from "../base";

export interface Goods extends BaseParam, UserInfo {
  categoryName: string;
  name: string;
  price: number;
  url: string;
  stock: string;
  description: string;
  status: string;
  pubTime: string;
  onSaleTime: string;
  width?: number;
}

export interface GoodsReq extends BasePageReq {
  categoryId?: number;
  name?: string;
  orderBy?: string;
}

export interface GoodsResp extends BasePageResp {
  records: Goods[];
}